Moderate: vim security update

Related Vulnerabilities: CVE-2022-0261   CVE-2022-0318   CVE-2022-0359   CVE-2022-0361   CVE-2022-0392   CVE-2022-0413  

Synopsis

Moderate: vim security update

Type/Severity

Security Advisory: Moderate

Red Hat Insights patch analysis

Identify and remediate systems affected by this advisory.

View affected systems

Topic

An update for vim is now available for Red Hat Enterprise Linux 8.

Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.

Description

Vim (Vi IMproved) is an updated and improved version of the vi editor.

Security Fix(es):

  • vim: Heap-based buffer overflow in block_insert() in src/ops.c (CVE-2022-0261)
  • vim: Heap-based buffer overflow in utf_head_off() in mbyte.c (CVE-2022-0318)
  • vim: Heap-based buffer overflow in init_ccline() in ex_getln.c (CVE-2022-0359)
  • vim: Illegal memory access when copying lines in visual mode leads to heap buffer overflow (CVE-2022-0361)
  • vim: Heap-based buffer overflow in getexmodeline() in ex_getln.c (CVE-2022-0392)
  • vim: Use after free in src/ex_cmds.c (CVE-2022-0413)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Solution

For details on how to apply this update, which includes the changes described in this advisory, refer to:

https://access.redhat.com/articles/11258

Affected Products

  • Red Hat Enterprise Linux for x86_64 8 x86_64
  • Red Hat Enterprise Linux for IBM z Systems 8 s390x
  • Red Hat Enterprise Linux for Power, little endian 8 ppc64le
  • Red Hat Virtualization Host 4 for RHEL 8 x86_64
  • Red Hat Enterprise Linux for ARM 64 8 aarch64

Fixes

  • BZ - 2044607 - CVE-2022-0261 vim: Heap-based buffer overflow in block_insert() in src/ops.c
  • BZ - 2045355 - CVE-2022-0318 vim: Heap-based buffer overflow in utf_head_off() in mbyte.c
  • BZ - 2046479 - CVE-2022-0359 vim: Heap-based buffer overflow in init_ccline() in ex_getln.c
  • BZ - 2048519 - CVE-2022-0413 vim: Use after free in src/ex_cmds.c
  • BZ - 2049175 - CVE-2022-0392 vim: Heap-based buffer overflow in getexmodeline() in ex_getln.c
  • BZ - 2050053 - CVE-2022-0361 vim: Illegal memory access when copying lines in visual mode leads to heap buffer overflow